package com.wukong.controller;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AnnouncementMapper {
    void insertAnnouncement(Announcement announcement);

    Announcement selectAnnouncementById(@Param("id") Long id);

    List<Announcement> selectAllAnnouncements();
}